function handles = importYfracData(handles)
% importYfracData
%
% Requires that you have done the yfrac measurement using measureDistances,
% resulting in a structure variable in the WS called 'distanceData', 
% with fields 'yL2', 'ysoma', 'yWM', and 'yfrac'

% gs 2008 03 08
% --------------------------------------

% import from WS
distanceData = evalin('base', 'distanceData');

% update gui values
set(handles.fieldAName, 'String', 'yL2');
set(handles.fieldBName, 'String', 'ysoma');
set(handles.fieldCName, 'String', 'yWM');
set(handles.fieldDName, 'String', 'yfrac');
set(handles.fieldAVal, 'String', num2str(round(distanceData.yL2)));
set(handles.fieldBVal, 'String', num2str(round(distanceData.ysoma')));
set(handles.fieldCVal, 'String', num2str(round(distanceData.yWM')));
set(handles.fieldDVal, 'String', num2str(distanceData.yfrac'));

% update handles variable
handles.data.analysis.fieldAName = 'yL2';
handles.data.analysis.fieldAVal = distanceData.yL2;
handles.data.analysis.fieldBName = 'ysoma';
handles.data.analysis.fieldBVal = distanceData.ysoma;
handles.data.analysis.fieldCName = 'yWM';
handles.data.analysis.fieldCVal = distanceData.yWM;
handles.data.analysis.fieldDName = 'yfrac';
handles.data.analysis.fieldDVal = distanceData.yfrac;
